<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../print.css" type="text/css" media="print">
<link rel="stylesheet" href="../../../prettify.css" type="text/css">
<meta content="Chat,mymyoux.controls.io.Chat,action,login,room,sendLabel,onMsg,onSendingMessage,scrollToEnd,send,showMsg" name="keywords">
<title>mymyoux.controls.io.Chat</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../prettify.js"></script><script type="text/javascript" language="javascript" src="../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'Chat - Mymyoux's Classes AS3 Reference';
				var baseRef = '../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">Mymyoux's Classes AS3 Reference</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../all-classes.html')" href="../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../index-list.html')" href="../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../index.html?mymyoux/controls/io/Chat.html&amp;mymyoux/controls/io/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;Chat</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class Chat"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">mymyoux.controls.io</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class Chat</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Inheritance</td><td class="inheritanceList">Chat <img class="inheritArrow" alt="Inheritance" title="Inheritance" src="../../../images/inherit-arrow.gif"> mx.containers.VBox</td>
</tr>
<tr>
<td class="classHeaderTableLabel">Implements</td><td>mx.binding.IBindingClient</td>
</tr>
</table>
<p></p>
<p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#action">action</a> : String<div class="summaryTableDescription">
    Nom de l'action utilisée par le Chat avec la MRoom.</div>
</td><td class="summaryTableOwnerCol">Chat</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#login">login</a> : String<div class="summaryTableDescription">
    Nom de la variable utilisée par le Chat avec les MServerIdentifier pour récupérer leurs login.</div>
</td><td class="summaryTableOwnerCol">Chat</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#room">room</a> : <a href="../../io/mserverconnectorClasses/MRoom.html">MRoom</a>
<div class="summaryTableDescription">
    MRoom associée au Chat.</div>
</td><td class="summaryTableOwnerCol">Chat</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#sendLabel">sendLabel</a> : String<div class="summaryTableDescription">
    Texte affiché sur le Bouton d'envoi.</div>
</td><td class="summaryTableOwnerCol">Chat</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#scrollToEnd()">scrollToEnd</a>():void</div>
<div class="summaryTableDescription">
    Force le chat à afficher les dernières lignes visibles.</div>
</td><td class="summaryTableOwnerCol">Chat</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#send()">send</a>(message:String):void</div>
<div class="summaryTableDescription">
    Envoie un message à la MRoom et appel onMsg.</div>
</td><td class="summaryTableOwnerCol">Chat</td>
</tr>
</table>
</div>
<a name="protectedMethodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Protected Methods</div>
<table id="summaryTableProtectedMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onMsg()">onMsg</a>(e:<a href="../../events/MRoomEvent.html">MRoomEvent</a>):void</div>
<div class="summaryTableDescription">
    Appelée lorsqu'un message est transmis par la MRoom.</div>
</td><td class="summaryTableOwnerCol">Chat</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#onSendingMessage()">onSendingMessage</a>(e:KeyboardEvent = null):void</div>
<div class="summaryTableDescription">
    Appelée lorsque l'utilisateur relâche la touche entrée ou clic sur le bouton Envoyer.</div>
</td><td class="summaryTableOwnerCol">Chat</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#showMsg()">showMsg</a>(message:String):void</div>
<div class="summaryTableDescription">
    Affiche le message dans le TextArea.</div>
</td><td class="summaryTableOwnerCol">Chat</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="action"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">action</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>action:String</code>&nbsp;&nbsp;[read-write]<p>
    Nom de l'action utilisée par le Chat avec la MRoom.
    </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get action():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set action(value:String):void</code>
<br>
</div>
<a name="login"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">login</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>login:String</code>&nbsp;&nbsp;[read-write]<p>
    Nom de la variable utilisée par le Chat avec les MServerIdentifier pour récupérer leurs login.
    </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get login():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set login(value:String):void</code>
<br>
</div>
<a name="room"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">room</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>room:<a href="../../io/mserverconnectorClasses/MRoom.html">MRoom</a></code>&nbsp;&nbsp;[read-write]<p>
    MRoom associée au Chat.
    </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get room():<a href="../../io/mserverconnectorClasses/MRoom.html">MRoom</a></code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set room(value:<a href="../../io/mserverconnectorClasses/MRoom.html">MRoom</a>):void</code>
<br>
</div>
<a name="sendLabel"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">sendLabel</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>sendLabel:String</code>&nbsp;&nbsp;[read-write]<p>
    Texte affiché sur le Bouton d'envoi.
    </p><span class="label">Implementation</span>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function get sendLabel():String</code>
<br>
<code>&nbsp;&nbsp;&nbsp;&nbsp;public function set sendLabel(value:String):void</code>
<br>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="onMsg()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onMsg</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onMsg(e:<a href="../../events/MRoomEvent.html">MRoomEvent</a>):void</code><p>
    Appelée lorsqu'un message est transmis par la MRoom.
    Appel showMsg pendant le traitement.
    Appel scrollToEnd à la fin de son traitement.
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:<a href="../../events/MRoomEvent.html">MRoomEvent</a></code> &mdash; envoyée par la MRoom.
    </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../io/Chat.html#scrollToEnd()" target="">scrollToEnd()</a>
<br>
<a href="../io/Chat.html#showMsg()" target="">showMsg()</a>
</div>
</div>
<a name="onSendingMessage()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">onSendingMessage</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function onSendingMessage(e:KeyboardEvent = null):void</code><p>
    Appelée lorsque l'utilisateur relâche la touche entrée ou clic sur le bouton Envoyer.
    Si l'action est validée, appel de la méthode send().
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">e</span>:KeyboardEvent</code> (default = <code>null</code>)<code></code> &mdash; KeyboardEvent envoyé si l'utilisateur écrit dans la tInput.
    </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../io/Chat.html#send()" target="">send()</a>
</div>
</div>
<a name="scrollToEnd()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">scrollToEnd</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function scrollToEnd():void</code><p>
    Force le chat à afficher les dernières lignes visibles.
    </p></div>
<a name="send()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">send</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function send(message:String):void</code><p>
    Envoie un message à la MRoom et appel onMsg.
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">message</span>:String</code> &mdash; Contenu du message transmis.
    </td>
</tr>
</table>
<p>
<span class="label">See also</span>
</p>
<div class="seeAlso">
<a href="../io/Chat.html#onMsg()" target="">onMsg()</a>
</div>
</div>
<a name="showMsg()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">showMsg</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>protected function showMsg(message:String):void</code><p>
    Affiche le message dans le TextArea.
    Fonction à overrider pour modifier le formattage de l'affichage.
    </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">message</span>:String</code> &mdash; à afficher.
    </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
